<?php
require_once $mypath.$system_root.'/include/common.inc.php';
require_once AK_ROOT.'include/forecache.func.php';
$forecache = getforecache($currenturl);
require_once(AK_ROOT.'include/global.func.php');
$db = db();
require_once(AK_ROOT.'include/fore.inc.php');
if(isset($get_template)) $template = $get_template;
if(empty($template) || substr($template, -4) != '.htm') fore404();
$html = foredisplay(0, 'page', $template);
if($forecache === false) setforecache($currenturl, $html);
echo $html;
require_once(AK_ROOT.'include/exit.php');
?>